package com.ruoyi.project.student.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.project.student.domain.param.StudentListParam;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.student.domain.Student;
import com.ruoyi.project.student.domain.vo.StudentListVo;
import com.ruoyi.project.student.mapper.StudentMapper;
import com.ruoyi.project.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper,Student> implements StudentService {

    @Autowired
    public StudentMapper studentMapper;

    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<StudentListVo> selectStudentList(StudentListParam param)
    {
        return studentMapper.selectStudentList(param);
    }
}
